﻿<!DOCTYPE html>
<html ng-app="LApp">
<head>
    <title>东华养车平台-管理员登录</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />

    <script src="config.js"></script>
    <script src="init.js"></script>
    <link href="Content/rescuemap.css" rel="stylesheet" />
    <script src="/Scripts/RescueMap.js" type="text/javascript" )"></script>

</head>
<body style="overflow:hidden;" ng-style="{'height':BodyHeight+'px'}" ng-app="LApp" ng-controller="RescueControl">
    <div class="layout-head">
        <div class="head-main">
            <div class="head-title">汽车救援调度平台</div>
            <ul class="head-menu">
                <li class="item">
                    调度中心
                </li>
            </ul>
        </div>
    </div>
    <lmap id="mapid" option="mapOption" event="mapEvent"></lmap>
    <div class="panel panel-default" style="position:absolute;right:12px;top:50px;z-index:10000;width:450px;opacity:.9;height:90%" ng-show="TaskInfo">
        <div class="panel-heading"><h4>实时会话</h4></div>
        <div class="panel-body">
            <div style="height:{{msgContentHeight}};overflow:auto;" class="msgContentWindow">
                <div ng-repeat="msg in TaskInfo.MsgList">
                    <div ng-if="msg.MsgType=='text'" ng-class="{true:'dh-message-me',false:'dh-message'}[msg.FromPlatform==1]">
                        <img ng-if="msg.FromPlatform==1" class="logo" src="Images/me.jpg" />
                        <img ng-if="msg.FromPlatform==0" class="logo" src="Images/user.gif" />
                        <div class="content" ng-bind="msg.MsgContent"></div>
                        <p style="clear:both;"></p>
                    </div>

                    <div ng-if="msg.MsgType=='image'" ng-class="{true:'dh-message-me',false:'dh-message'}[msg.FromPlatform==1]">
                        <img ng-if="msg.FromPlatform==1" class="logo" src="Images/me.jpg" />
                        <img ng-if="msg.FromPlatform==0" class="logo" src="Images/user.gif" />
                        <div class="content"><img ng-src="{{msg.MsgContent}}" /></div>
                        <p style="clear:both;"></p>
                    </div>
                </div>
                <div style="height:50px;"></div>
            </div>
            <p style="box-shadow:0px 0px 5px rgba(0,0,0,.5);margin:5px 0px;height:1px;"></p>
            <div style="height:100px;">
                <div class="col-md-9">
                    <textarea style="height:100px;" class="form-control" ng-model="MsgNewContent" ng-keyup="SendMessageKeyUp($event)"></textarea>
                </div>
                <div class="col-md-3" style="vertical-align:middle;">
                    <a class="btn btn-primary btn-lg" ng-disabled="!MsgNewContent" ng-click="SendMessage()">发送</a>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default" ng-show="TestPositionEnable" style="position:absolute;left:12px;top:50px;z-index:10000;width:750px;height:90%;overflow:auto;padding:10px;">
        <table class="table table-hover table-striped table-bordered">
            <tbody>
                <tr ng-repeat="item in TestPositionList" ng-click="TestPositionItemClick(item)" style="cursor:pointer;">
                    <td>{{item.Lng}}</td>
                    <td>{{item.Lat}}</td>
                    <td>{{item.RecordTime}}</td>
                    <td>{{item.Distance}}米</td>
                    <td>{{item.Second}}秒</td>
                    <td>{{item.Speed}}米/秒</td>
                </tr>
            </tbody>
        </table>
    </div>

        <script type="text/ng-template" id="keepcar/mapMarkerPopup.html">
            <div style="width:400px;">
                <div class="row">
                    <div class="col-md-4">
                        <img style="width:130px;" class="img-responsive" ng-src="{{$parent.TaskInfo.CarInfo.CarFaceImgUrl}}" />
                    </div>
                    <div class="col-md-8">
                        <div><label>车主：</label> {{$parent.TaskInfo.UserInfo.FullName}}</div>
                        <div><label>车号：</label> {{$parent.TaskInfo.CarInfo.CarNo}}</div>
                        <div><label>品牌：</label> {{$parent.TaskInfo.CarInfo.CarBrandName}}</div>
                        <div><label>车型：</label> {{$parent.TaskInfo.CarInfo.CarSeriesName}}</div>
                        <div><label>车主手机：</label> {{$parent.TaskInfo.UserInfo.Mobile}}</div>
                        <div><label>车辆位置：</label> {{$parent.TaskInfo.Address}}</div>
                        <div><label>任务状态：</label>  {{$parent.TaskInfo.TaskStateDesc}}</div>
                        <div ng-show="$parent.TaskInfo.TaskState==0"><label>任务操作：</label>  <a href="JavaScript:;" ng-click="$parent.DealTask_1($parent.TaskInfo)">受理此任务</a></div>
                        <div ng-show="$parent.TaskInfo.TaskState==1">
                            <label>任务操作：</label>
                            <select ng-model="$parent.SelectDrayUser"><option ng-repeat="x in $parent.DrayDriverUserList" value="{{x.UserId}}">{{x.FullName}}</option></select>
                            <a href="JavaScript:;" ng-click="$parent.DealTask_2(PopupTaskInfo)">调度车辆</a>
                        </div>
                    </div>
                </div>
            </div>
        </script>
</body>
</html>
